/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Diana
 */
@Entity
@Table(name = "parametros", catalog = "nomina", schema = "")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Parametros.findAll", query = "SELECT p FROM Parametros p"),
    @NamedQuery(name = "Parametros.findByIdparametros", query = "SELECT p FROM Parametros p WHERE p.idparametros = :idparametros"),
    @NamedQuery(name = "Parametros.findBySalariominimo", query = "SELECT p FROM Parametros p WHERE p.salariominimo = :salariominimo"),
    @NamedQuery(name = "Parametros.findByAuxiliotransporte", query = "SELECT p FROM Parametros p WHERE p.auxiliotransporte = :auxiliotransporte"),
    @NamedQuery(name = "Parametros.findBySubsidioalimentacion", query = "SELECT p FROM Parametros p WHERE p.subsidioalimentacion = :subsidioalimentacion"),
    @NamedQuery(name = "Parametros.findByPorcentajesalud", query = "SELECT p FROM Parametros p WHERE p.porcentajesalud = :porcentajesalud"),
    @NamedQuery(name = "Parametros.findByPorcentajepension", query = "SELECT p FROM Parametros p WHERE p.porcentajepension = :porcentajepension"),
    @NamedQuery(name = "Parametros.findByLimitesubalimentacion", query = "SELECT p FROM Parametros p WHERE p.limitesubalimentacion = :limitesubalimentacion")})
public class Parametros implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idparametros")
    private Integer idparametros;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "salariominimo")
    private Float salariominimo;
    @Column(name = "auxiliotransporte")
    private Float auxiliotransporte;
    @Column(name = "subsidioalimentacion")
    private Float subsidioalimentacion;
    @Column(name = "porcentajesalud")
    private Float porcentajesalud;
    @Column(name = "porcentajepension")
    private Float porcentajepension;
    @Column(name = "limitesubalimentacion")
    private Float limitesubalimentacion;

    public Parametros() {
    }

    public Parametros(Integer idparametros) {
        this.idparametros = idparametros;
    }

    public Integer getIdparametros() {
        return idparametros;
    }

    public void setIdparametros(Integer idparametros) {
        this.idparametros = idparametros;
    }

    public Float getSalariominimo() {
        return salariominimo;
    }

    public void setSalariominimo(Float salariominimo) {
        this.salariominimo = salariominimo;
    }

    public Float getAuxiliotransporte() {
        return auxiliotransporte;
    }

    public void setAuxiliotransporte(Float auxiliotransporte) {
        this.auxiliotransporte = auxiliotransporte;
    }

    public Float getSubsidioalimentacion() {
        return subsidioalimentacion;
    }

    public void setSubsidioalimentacion(Float subsidioalimentacion) {
        this.subsidioalimentacion = subsidioalimentacion;
    }

    public Float getPorcentajesalud() {
        return porcentajesalud;
    }

    public void setPorcentajesalud(Float porcentajesalud) {
        this.porcentajesalud = porcentajesalud;
    }

    public Float getPorcentajepension() {
        return porcentajepension;
    }

    public void setPorcentajepension(Float porcentajepension) {
        this.porcentajepension = porcentajepension;
    }

    public Float getLimitesubalimentacion() {
        return limitesubalimentacion;
    }

    public void setLimitesubalimentacion(Float limitesubalimentacion) {
        this.limitesubalimentacion = limitesubalimentacion;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idparametros != null ? idparametros.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Parametros)) {
            return false;
        }
        Parametros other = (Parametros) object;
        if ((this.idparametros == null && other.idparametros != null) || (this.idparametros != null && !this.idparametros.equals(other.idparametros))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "modelo.Parametros[ idparametros=" + idparametros + " ]";
    }
    
}
